import axios from 'axios';
import {ALL_SERVICE_API} from '../api';

export const createMebPersonal = (params) => {
  return axios.post(ALL_SERVICE_API + '/meb-personals', params);
};

export const updateMebPersonal = (params) => {
  return axios.put(ALL_SERVICE_API + '/meb-personals', params);
};

export const getAllMebPersonals = (params) => {
  return axios.get(ALL_SERVICE_API + '/meb-personals', {params: params});
};

export const getMebPersonal = (id) => {
  return axios.get(ALL_SERVICE_API + '/meb-personals/' + id);
};

export const deleteMebPersonal = (id) => {
  return axios.delete(ALL_SERVICE_API + '/meb-personals/' + id);
};

export const searchMebPersonForPayWay = (params) => {
  return axios.get(ALL_SERVICE_API + '/meb-personals/pay', {params: params});
};

// 新框架
export const searchMebPersonsForSendSmsNew = params => {
  return axios.get(ALL_SERVICE_API + '/meb_persons_for_sendsms', {params: params});
};
